﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GurLoader.CommandLineOptions;
using NUnit.Framework;

namespace GurLoaderWPF.Test.CommandLineOptions
{
    [TestFixture]
    public class SendAlbumOptionsTests
    {
        [Test]
        public void ValidateTest()
        {
            var opts = new SendAlbumOptions();
            opts.Files = new[] {"C:\\test1.jpg", "C:\\test2.jpg"};

            opts.Validate();
        }

        [Test]
        [ExpectedException]
        public void ValidateNoFilesTest()
        {
            var opts = new SendAlbumOptions();
            opts.Files = null;

            opts.Validate();
        }

        [Test]
        [ExpectedException]
        public void ValidateEmptyFilesTest()
        {
            var opts = new SendAlbumOptions();
            opts.Files = new String[0];

            opts.Validate();
        }
    }
}
